
class Test(object):
    __slots__ = (
#        "name",
#        "context",
#        "armature",
#        "arm_data",
#        "bones",
#        "root_bones",
        )

    def __init__(self):#, armature, adj_mat):
        #self.armature = armature
        #self.name = armature.name
        #self.arm_data = armature.data
        #self.bones = {}
        #self.root_bones = []

        #for bone in self.arm_data.bones:
        #    if (not bone.name.startswith("IK_")):
        #        from ossl._types.Bone import Bone
        #        self.bones[bone.name] = Bone(self, bone.name, adj_mat)

        #for bone in self.bones.values():
        #    bone.adjust_hierarchy_up(self)

        #for bone in self.bones.values():
        #    if bone.parent == None:
        #        self.root_bones.append(bone)

        #for bone in self.root_bones:
        #    bone.adjust_hierarchy_down(self)
        pass

############## MenuFolder ###############

import bpy, ossl.menu as menu

class OSSL_MT_Test(menu.MenuFolder):
    bl_label = "OSSL Menu Test"
    bl_idname = "OSSL_MT_Test"

def OSSL_menu_Test(self, comtext):
    self.layout.menu("OSSL_MT_Test", text="Test", icon="BLENDER")

import ossl.util as util

def register():
    print("registering: OSSL Type Test")
    bpy.utils.register_class(OSSL_MT_Test)
    bpy.types.TOPBAR_MT_OSSL.append(OSSL_menu_Test)
    util.imports("ossl._types.Test", "execute")
    print("registered: OSSL Type Test")

def unregister():
    print("unregistering: OSSL Type Test")
    util.release("ossl._types.Test", "execute")
    bpy.types.TOPBAR_MT_OSSL.remove(OSSL_menu_Test)
    bpy.utils.unregister_class(OSSL_MT_Test)
    print("unregistered: OSSL Type Test")

if __name__ == "__main__":
    util.reset_addon()
